class ApiException implements Exception {
  String message;
  String code;
  ApiException({required this.code, required this.message});
  Map<String, String> toJson() => {"msg": message, "code": code};
}

enum EXP {
  httpError("502", "httpError"),
  userExpired("501", "userExpired"),
  apiError("500", "apiError"),
  ;

  final String title;
  final String code;

  const EXP(this.code, this.title);
}
